public with sharing class John_Student_Flow_TestCustomApexInout {
    
    // 输入、输出是自定义类型
    @InvocableMethod
    public static List<Test> testCustomApexInOut(List<Test> testList) {
        for (Test t : testList) {
            t.t1 = t.t1 += 10;
            t.t2 = t.t2 += 100;
        }
        return testList;
    }

    public class Test {
        @InvocableVariable(required=true)
        public Integer t1;

        @InvocableVariable
        public Integer t2;

    }

}